package com.travel.server.manager.dto.response.project.data;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/29 10:36
 * @Desc:
 */
@Data
public class QueryProjectCostResponse {

    @JSONField(name = "current_month")
    private String currentMonth = "0";

    @JSONField(name = "last_month")
    private String lastMonth = "0";

    @JSONField(name = "cost_list")
    private List<CostItem> costList;

    @JSONField(name = "total_num")
    private Integer totalNum;

    @Data
    public static class CostItem{
        private Integer id;

        private String project;

        @JSONField(name = "travel_num")
        private String travelNum;

        @JSONField(name = "travel_date", format = "yyyy-MM-dd")
        private Date travelDate;

        @JSONField(name = "project_amount")
        private String projectAmount;

        @JSONField(name = "apply_amount")
        private String applyAmount;

        private String cost;
    }
}
